//
//  XLIMViewModel.m
//  XiangLove
//
//  Created by Dgh Hv on 2018/11/1.
//  Copyright © 2018年 BAOMIHUA.COM. All rights reserved.
//

#import "XLIMViewModel.h"
#import "XLOrderPeopleModel.h"

@implementation XLIMViewModel

-(void)getOrderListComplete:(void(^)(NSArray * data))complete
{
    [[[XLHTTPSessionManager sharedManager]XLV2GET:@"/Api/v2/Matching/GetMatchingUserInfo" parameters:@{@"anchorId":SafeStr([[XLAccountManager shareInstance]model].Id)} resultClass:[XLOrderPeopleModel class]] subscribeNext:^(id x) {
        NSArray * data = (NSArray *)x;
        if(complete)
        {
            complete(data);
        }
        
    } error:^(NSError *error) {
        NSLog(@"%@", error);
        if(complete)
        {
            complete(nil);
        }
    }];
}

@end
